﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace DLM.Infrastructure.Configuration
{
    public class WebConfigApplicationSettings : IApplicationSettings
    {
        public string LoggerName
        {
            get { return ConfigurationManager.AppSettings["LoggerName"]; }
        }

        public string NumberOfResultsPerPage
        {
            get { return ConfigurationManager.AppSettings["NumberOfResultsPerPage"]; }
        }

        public string JanrainApiKey
        {
            get
            {
                return ConfigurationManager
                             .AppSettings["JanrainApiKey"];
            }
        }

        public string PayPalBusinessEmail
        {
            get { return ConfigurationManager.AppSettings["PayPalBusinessEmail"]; }
        }

        public string PayPalPaymentPostToUrl
        {
            get { return ConfigurationManager.AppSettings["PayPalPaymentPostToUrl"]; }
        }

        public string XmlRulePath
        {
            get { return ConfigurationManager.AppSettings["XmlRule"]; }
        }

        public string SMTP
        {
            get { return ConfigurationManager.AppSettings["SMTP"]; }
        }

        public int Port
        {
            get { return int.Parse(ConfigurationManager.AppSettings["Port"]); }
        }

        public string From
        {
            get { return ConfigurationManager.AppSettings["From"]; }
        }

        public string UserName
        {
            get { return ConfigurationManager.AppSettings["UserName"]; }
        }

        public string Password
        {
            get { return ConfigurationManager.AppSettings["Password"]; }
        }

        public string AdvPath
        {
            get { return ConfigurationManager.AppSettings["AdvPath"]; }
        }
    }
}
